package com.yswy.common.enums;



import java.util.Map;

public enum OperatorEnums implements TypeEnum{
	DX(0, "电信"),
	YD(1, "移动"),
    LT(2, "联通");

	OperatorEnums(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private final int code;

    private final String message;

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public static String getMessageByCode(Integer code) {
        if (code == DX.getCode()){
            return DX.getMessage();
        }else if (code == YD.getCode()){
            return YD.getMessage();
        }else if (code == LT.getCode()){
            return LT.getMessage();
        }else {
            return null;
        }
    }
    
    public static Map<Integer,String> kv = EnumHelper.getCtx(values());
    

}
